﻿using System;
using System.Configuration;
using WebCrawlerLib;

namespace BingWallConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                var directoryName = ConfigurationManager.AppSettings["BingWallPaperJob_DirectoryName"];
                BingWallPaperService service = new BingWallPaperService(directoryName);
                service.Start();
            }
            catch (Exception ex)
            {
                Console.Write(string.Format("{0}\r\n", ex.ToString()));
                Console.ReadKey();
            }
        }
    }
}
